home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / gdk-pixbuf-1.0 / gdk-pixbuf / gdk-pixbuf-xlib.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-01-09  |  2.4 KB  |  83 lines

  1. /* GdkPixbuf library - Xlib header file
  2.  *
  3.  * Authors: John Harper <john@dcs.warwick.ac.uk>
  4.  *
  5.  * This library is free software; you can redistribute it and/or
  6.  * modify it under the terms of the GNU Library General Public
  7.  * License as published by the Free Software Foundation; either
  8.  * version 2 of the License, or (at your option) any later version.
  9.  *
  10.  * This library is distributed in the hope that it will be useful,
  11.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.  * Library General Public License for more details.
  14.  *
  15.  * You should have received a copy of the GNU Library General Public
  16.  * License along with this library; if not, write to the
  17.  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18.  * Boston, MA 02111-1307, USA.
  19.  */
  20.  
  21. #ifndef GDK_PIXBUF_XLIB_H
  22. #define GDK_PIXBUF_XLIB_H
  23.  
  24. #include "gdk-pixbuf.h"
  25. #include "gdk-pixbuf-xlibrgb.h"
  26. #include <X11/Xlib.h>
  27.  
  28.  
  29.  
  30. /* init */
  31.  
  32. void gdk_pixbuf_xlib_init (Display *display, int screen_num);
  33.  
  34. void gdk_pixbuf_xlib_init_with_depth (Display *display, int screen_num,
  35.                       int prefDepth);
  36.  
  37.  
  38.  
  39. /* render */
  40.  
  41. void gdk_pixbuf_xlib_render_threshold_alpha (GdkPixbuf *pixbuf, Pixmap bitmap,
  42.                          int src_x, int src_y,
  43.                          int dest_x, int dest_y,
  44.                          int width, int height,
  45.                          int alpha_threshold);
  46.  
  47. void gdk_pixbuf_xlib_render_to_drawable (GdkPixbuf *pixbuf,
  48.                      Drawable drawable, GC gc,
  49.                      int src_x, int src_y,
  50.                      int dest_x, int dest_y,
  51.                      int width, int height,
  52.                      XlibRgbDither dither,
  53.                      int x_dither, int y_dither);
  54.  
  55.  
  56. void gdk_pixbuf_xlib_render_to_drawable_alpha (GdkPixbuf *pixbuf,
  57.                            Drawable drawable,
  58.                            int src_x, int src_y,
  59.                            int dest_x, int dest_y,
  60.                            int width, int height,
  61.                            GdkPixbufAlphaMode alpha_mode,
  62.                            int alpha_threshold,
  63.                            XlibRgbDither dither,
  64.                            int x_dither, int y_dither);
  65.  
  66. void gdk_pixbuf_xlib_render_pixmap_and_mask (GdkPixbuf *pixbuf,
  67.                          Pixmap *pixmap_return,
  68.                          Pixmap *mask_return,
  69.                          int alpha_threshold);
  70.  
  71.  
  72.  
  73. /* drawable */
  74.  
  75. GdkPixbuf *gdk_pixbuf_xlib_get_from_drawable (GdkPixbuf *dest,
  76.                           Drawable src,
  77.                           Colormap cmap, Visual *visual,
  78.                           int src_x, int src_y,
  79.                           int dest_x, int dest_y,
  80.                           int width, int height);
  81.  
  82. #endif /* GDK_PIXBUF_XLIB_H */
  83.